﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Principal;

using LeanEngine.Business.Security.Entity;

namespace LeanEngine.Business.Security
{
    internal sealed class SecurityPrincipal : IPrincipal
    {
        #region Constructor Members

        public SecurityPrincipal(Token token)
        {
            this.Token = token;
        }

        #endregion

        #region Property Members

        private Token Token
        {
            get;
            set;
        }

        #endregion

        #region IPrincipal Members

        public IIdentity Identity
        {
            get { return Token; }
        }

        public bool IsInRole(string role)
        {
            return false;
        }

        #endregion
    }
}
